package partnermanagement;


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Home
 */
public class Kind implements IKind {

    protected int id;
    protected IEltern eltern;
    protected String vorname;

    public Kind(int id, IEltern eltern, String vorname, String nachname, Geschlecht geschlecht) {
        super();
        this.id = id;
        this.vorname = vorname;
        this.nachname = nachname;
        this.geschlecht = geschlecht;
    }

    @Override
    public int getId() {
        return id;
    }

    @Override
    public void setId(int id) {
        this.id = id;
    }

    @Override
    public IEltern getEltern() {
        return eltern;
    }

    @Override
    public String getVorname() {
        return vorname;
    }

    @Override
    public void setVorname(String vorname) {
        this.vorname = vorname;
    }

    @Override
    public String getNachname() {
        return nachname;
    }

    @Override
    public void setNachname(String nachname) {
        this.nachname = nachname;
    }

    @Override
    public Geschlecht getGeschlecht() {
        return geschlecht;
    }

    @Override
    public void setGeschlecht(Geschlecht geschlecht) {
        this.geschlecht = geschlecht;
    }
    protected String nachname;
    protected Geschlecht geschlecht;

    public void setEltern(IEltern eltern) {
        this.eltern = eltern;
    }
    
    
     public String toString(){
        String result = "";;
        result += this.vorname + " " + this.nachname;
        return result;
    }
}
